package edu.online.dal;

import edu.online.entity.LessonTimeEntityKey;
import org.apache.ibatis.jdbc.SQL;

public class LessonTimeEntitySqlProvider {

    public String insertSelective(LessonTimeEntityKey record) {
        SQL sql = new SQL();
        sql.INSERT_INTO("lessontime");
        
        if (record.getTimeitemid() != null) {
            sql.VALUES("TimeItemID", "#{timeitemid,jdbcType=CHAR}");
        }
        
        if (record.getLessonid() != null) {
            sql.VALUES("LessonID", "#{lessonid,jdbcType=CHAR}");
        }
        
        return sql.toString();
    }
}